package com.platform.dao;

import com.platform.domain.model.FunctionResources;
import com.platform.domain.model.FunctionResourcesKey;

import java.util.List;

/**
* FunctionResources
*
* User: wangyang
* DateTime: 2012-10-08 16:11:49
*
*/
public interface FunctionResourcesDao {

    /**
    *
    * 根据主键查询FunctionResources对象
    *
    * @param key
    * @return FunctionResources对象
    */
    FunctionResources selectByPrimaryKey(FunctionResourcesKey key) throws Exception;

    /**
    *
    * 根据查询条件查询符合条件的FunctionResources对象
    *
    * @param functionResources
    * @return 符合条件的FunctionResources对象List
    */
    List<FunctionResources> select(FunctionResources functionResources) throws Exception;

    /**
    *
    * 根据主键删除FunctionResources对象
    *
    * @param key
    * @return 影响条件数
    */
    int deleteByPrimaryKey(FunctionResourcesKey key) throws Exception;

    /**
    *
    * 根据条件删除符合条件的FunctionResources对象
    *
    * @param functionResources
    * @return 影响条件数
    */
    int delete(FunctionResources functionResources) throws Exception;

    /**
    *
    * 插入FunctionResources对象
    *
    * @param functionResources
    * @return 影响条件数
    */
    int insert(FunctionResources functionResources) throws Exception;

    /**
    *
    * 更新FunctionResources对象
    *
    * @param functionResources
    * @return 影响条件数
    */
    int update(FunctionResources functionResources) throws Exception;

}
